  <?php include "config/mysql.php";?>
  <!DOCTYPE html>
  <html>
  <head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>layout后台布局 - Layui</title>
  <link rel="stylesheet" href="../layui/css/layui.css">
  <link rel="stylesheet" href="../css/admin.css">
  </head>
  <body>
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <!-- 头部区域（可配合layui已有的水平导航） -->
    <?php include "public/header.php";?>
    </div>
    <div class="layui-side layui-bg-black">
       <?php
        include "public/left.php";
      ?>
    </div>
    <div class="layui-body">
     <div class="right_div">  
      <h2>分类添加界面</h2>
       <form class="layui-form" action="do/do_addkid.php" method="post" >          
         <div class="layui-form-item">
          <label class="layui-form-label">新分类名称</label>
          <div class="layui-input-inline">
            <input type="text" name="king" lay-verify="required" autocomplete="off" value="" class="layui-input">
          </div>
         </div>         
         <div class="layui-form-item layui-form-text">
            <input type="hidden" name="id" value="">
            <label class="layui-form-label">分类描述</label>
            <div class="layui-input-block">
              <textarea class="layui-textarea layui-hide" name="content" lay-verify="" id="LAY_demo_editor" value="" >     </textarea>
            </div>
        </div>
        <div class="layui-form-item">
          <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="demo1">确认添加</button>        
          </div>
        </div>
       </form>
     </div>
     </div>
    </div>
  <script src="../layui/layui.js"></script>
  <script>
  layui.use(['form', 'layedit', 'laydate'], function(){
    var form = layui.form()
    ,layer = layui.layer
    ,layedit = layui.layedit
    ,laydate = layui.laydate;
    
    //创建一个编辑器
    var editIndex = layedit.build('LAY_demo_editor');
    

    })



  </script>
  </body>
  </html>